<?php
/**
 * Description of Imgclass
 * 
 * @author Thibault Koprowski
 */
class Img{
    
    private $id;
    private $path;

    public function __construct($id){
        $db = new Db();
        $SQL = "SELECT * FROM carte.img WHERE id = '$id';";
        $req = $db->query($SQL);
        $res = pg_fetch_objet($req);
        $this->id = $res->id;
        $this->path = $res->path;
    }

    public function getId(){
        return $this->id;
    }

    public function getNom(){
        return $this->nom;
    }

    public function getPath(){
        return $this->path;
    }

    public function supprimerImg($idImg){

    } 
}
?>
